import request from '@/utils/request'

// 下拉列表
export default {
    /**
     * 平台列表
     * @param params
     * @returns {*}
     */
    apiGetPlatFormList: params => {
        return request({
            baseURL: window.APP_GETEWAY.base,
            url: `/v1/platform/platforms`,
            method: 'get',
            params,
        })
    },
    /**
     * 站点列表
     * @param params  平台id platform_ids: []
     * @returns {*}
     */
    apiGetSiteList: params => {
        return request({
            baseURL: window.APP_GETEWAY.base,
            url: `/v1/platform/sites`,
            method: 'get',
            params,
        })
    },
    /**
     * 店铺列表
     * @param data 平台id platform_ids: [], 站点id site_ids: []
     * @returns {*}
     */
    apiGetShopList: data => {
        return request({
            baseURL: window.APP_GETEWAY.base,
            url: `/v1/shop/drop-list`,
            method: 'post',
            data,
        })
    },
}